package com.atguigu.gmall.activity.client;

import com.atguigu.gmall.activity.fallback.ActivityFeignClientFallBack;
import com.atguigu.gmall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description:
 * @author: JC
 * @date: 2021/11/15 16:47
 */
@FeignClient(value = "service-activity" ,fallback = ActivityFeignClientFallBack.class)
public interface ActivityFeignClient {

    @GetMapping("/api/activity/seckill/findAll")
    Result findAll();

    @GetMapping("/api/activity/seckill/getSeckillGoods/{skuId}")
    Result getSeckillGoods(@PathVariable("skuId") Long skuId);
}
